package cn.stylefeng.guns.modular.basic.service;

import java.io.IOException;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.baomidou.mybatisplus.extension.service.IService;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.basic.entity.BasicPrivatecar;
import cn.stylefeng.guns.modular.basic.model.params.BasicPrivatecarParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicPrivatecarResult;
import cn.stylefeng.guns.modular.order.model.params.OrderTransportParam;
import cn.stylefeng.roses.core.reqres.response.ResponseData;

/**
 * 自有车档案表 服务类
 */
public interface BasicPrivatecarService extends IService<BasicPrivatecar> {

    /**
     * 新增
     */
    void add(BasicPrivatecarParam param);

    /**
     * 删除
     */
    void delete(BasicPrivatecarParam param);

    /**
     * 更新
     */
    void update(BasicPrivatecarParam param);

    /**
     * 查询单条数据，Specification模式
     */
    BasicPrivatecarResult findBySpec(BasicPrivatecarParam param, Long deptId,Long operateId);

    /**
     * 查询列表，Specification模式
     */
    List<BasicPrivatecarResult> findListBySpec(BasicPrivatecarParam param, Long deptId, Long operateId);

    List<BasicPrivatecarResult> findListBySpec8(BasicPrivatecarParam param, Long deptId, Long operateId);

    List<BasicPrivatecarResult> findBySpecList(BasicPrivatecarParam param, Long operateId);

    /**
     * 查询分页数据，Specification模式
     */
     LayuiPageInfo findPageBySpec(BasicPrivatecarParam param, String condition,Long deptId,String channeltype, Long operateId);
     
     LayuiPageInfo appFindPageBySpec(BasicPrivatecarParam param,Long deptId, Long operateId);

	boolean findTwoByOrder(OrderTransportParam orderTransportParam,Long operateId);

	ResponseData getExceldata(MultipartFile file, BasicPrivatecarParam basicPrivatecarParam, ResponseData data) throws IOException;
	
	boolean saveBatchList(List<BasicPrivatecarParam> list);

	LayuiPageInfo findPlatooncarPageBySpec(BasicPrivatecarParam basicPrivatecarParam, String condition, Long operateId);

    BasicPrivatecarResult findByName(String name, Long operateId);
}
